import request from '@/utils/request'

// 查询文件夹列表
export function listAmFolder(query) {
  return request({
    url: '/am/amFolder/list',
    method: 'get',
    params: query
  })
}

// 查询文件夹详细
export function getAmFolder(id) {
  return request({
    url: '/am/amFolder/' + id,
    method: 'get'
  })
}

// 新增文件夹
export function addAmFolder(data) {
  return request({
    url: '/am/amFolder',
    method: 'post',
    data: data
  })
}

// 修改文件夹
export function updateAmFolder(data) {
  return request({
    url: '/am/amFolder',
    method: 'put',
    data: data
  })
}

// 删除文件夹
export function delAmFolder(id) {
  return request({
    url: '/am/amFolder/' + id,
    method: 'delete'
  })
}

// 查询下拉树结构
export function treeselectFolder() {
    return request({
        url: '/am/amFolder/treeselect',
        method: 'get'
    })
}


